﻿namespace Digitalmes.Application.Mes.Masters.Lines;

/// <summary>
/// 产线 DTO 对象。
/// </summary>
public sealed class MdLineDto : Dto
{
    /// <summary>
    /// 产线编号
    /// </summary>
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 产线名称
    /// </summary>
    [NotNull]
    public string? LineName { get; set; }

    /// <summary>
    /// 所在车间 Id，可为 null。
    /// </summary>
    public long? WorkshopId { get; set; }

    /// <summary>
    /// 所在车间编号
    /// </summary>
    public string? WorkshopCode { get; set; }

    /// <summary>
    /// 负责人
    /// </summary>
    public string? Principal { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 启用状态（0->停用，1->启用）
    /// </summary>
    public EnabledStatusEnum Status { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? LastModifiedBy { get; set; }

    public DateTime? LastModifiedTime { get; set; }
}
